import Vue from 'vue'
import App from './App.vue'
import router from './router'
import Vant from 'vant';
import 'vant/lib/index.css';
import less from 'less';
import store from './store'
Vue.use(less)

import Router from 'vue-router'
import axios from 'axios'

Vue.prototype.axios = axios

Vue.config.productionTip = false

const routerPush = Router.prototype.push
Router.prototype.push = function push(location) {
return routerPush.call(this, location).catch(error=> error)
}

Vue.use(Vant);

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

